import request from '@/utils/request'

// 区域列表
export function getAreaList(params) {
  return request({
    url: '/vm-service/region/search',
    method: 'get',
    params
  })
}
// 新增区域列表
export function AddArea(data) {
  return request({
    url: '/vm-service/region',
    method: 'POST',
    data
  })
}
// 修改区域
export function UpdateArea(id, data) {
  return request({
    url: '/vm-service/region/' + id,
    method: 'PUT',
    data
  })
}
// 区域详情
export function areaDetail(regionId, params) {
  return request({
    url: '/vm-service/region/' + regionId,
    method: 'GET',
    params
  })
}
// 删除区域
export function deleteArea(id) {
  return request({
    url: '/vm-service/region/' + id,
    method: 'DELETE'
  })
}
